<?php
/**
 * Created by PhpStorm.
 * User: xlosy
 * Date: 2018/4/16
 * Time: 23:17
 */

namespace app\index\model;


use think\Model;

class Vipcode extends Model
{

    /**
     * 校验加油卡是否正确
     */
    public function findByVipCode($vip_code){
        $vipCode = new Vipcode();
        $vipCode = $vipCode->where(["code"=>$vip_code,"is_use"=>"1"])->find();
        return $vipCode;
    }
}